package aggregation

import (
	"gluenet/pkg/apis"
	"time"
)

func Group(c *apis.StorageContext) {
	tk := time.NewTicker(time.Second * 6)
	//gluenetsApplicationStatus(c)
	for {
		select {
		case <-c.Context.Done():
			return
		case <-tk.C:
			gluenetsApplicationMetrics(c)
			gluenetsApplicationStatus(c)
		}
	}
}
